package com.ds.orm.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ds.core.base.BaseModel;


/**
 * <p>
 * 博客，记录用户发表的博客，文章，日志
 * </p>
 *
 * @author Du
 * @since 2017-11-28
 */
@TableName("ds_blog")
@SuppressWarnings("serial")
public class Blog extends BaseModel {

    /**
     * 博客内容
     */
	@TableField("blog_body")
	private String blogBody;
    /**
     * 博客标题
     */
	@TableField("blog_head")
	private String blogHead;
    /**
     * 博客类别id
     */
	@TableField("classify_id")
	private Long classifyId;
    /**
     * 作者id
     */
	@TableField("author_id")
	private Long authorId;
    /**
     * 标签
     */
	private String tags;
    /**
     * 0:未删除，1:已删除
     */
	@TableField("del_flag")
	private String delFlag;
    /**
     * 0:未置顶，1:已置顶
     */
	@TableField("top_flag")
	private String topFlag;

	@TableField(exist = false)
	private String[] tagsArr;
	
	public String getBlogBody() {
		return blogBody;
	}

	public void setBlogBody(String blogBody) {
		this.blogBody = blogBody;
	}

	public String getBlogHead() {
		return blogHead;
	}

	public void setBlogHead(String blogHead) {
		this.blogHead = blogHead;
	}

	public Long getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(Long classifyId) {
		this.classifyId = classifyId;
	}

	public Long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(Long authorId) {
		this.authorId = authorId;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getTopFlag() {
		return topFlag;
	}

	public void setTopFlag(String topFlag) {
		this.topFlag = topFlag;
	}

	@Override
	public String toString() {
		return "Blog [blogBody=" + blogBody + ", blogHead=" + blogHead + ", classifyId=" + classifyId + ", authorId="
				+ authorId + ", tags=" + tags + ", delFlag=" + delFlag + ", topFlag=" + topFlag + "]";
	}

	public String[] getTagsArr() {
		return tagsArr;
	}

	public void setTagsArr(String[] tagsArr) {
		this.tagsArr = tagsArr;
	}

}